import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/pubilc.scss'
Vue.config.productionTip = false
import { Toast, Dialog, Field, Popup, Icon, ActionSheet, Cell, Switch    } from 'vant';
import 'vant/lib/index.css';
Vue.use(Dialog);
Vue.use(Field);
Vue.use(Popup);
Vue.use(Toast);
Vue.use(Icon);
Vue.use(ActionSheet);
Vue.use(Cell);
Vue.use(Switch);
Vue.prototype.$Toast = Toast
Vue.prototype.$Dialog = Dialog
import mixin from '@/assets/js/mixin'
Vue.mixin(mixin)
import VueLazyLoad from 'vue-lazyload';
const loadimage = require('./assets/img/loadingImg.png')
const errorimage = require('./assets/img/404.png')
Vue.use(VueLazyLoad,{
	error:errorimage, // 加载错误的图片
	loading:loadimage // 加载时的图片
});
import {imagePreview} from "./assets/js/imagePreview.js";
Vue.directive('imagePreview', imagePreview);
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
